package com.dk.hi.core;

/**
 * Represents a MapActor direction
 */
public enum Direction {
	LEFT, RIGHT, UP, DOWN;

	public Direction getOpposite() {
		switch (this) {
		case LEFT:
			return RIGHT;
		case RIGHT:
			return LEFT;
		case UP:
			return DOWN;
		case DOWN:
			return UP;
		default:
			return null;
		}
	}
}
